import cn.hutool.core.map.MapUtil;
import cn.hutool.core.util.StrUtil;
import com.sun.deploy.util.StringUtils;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by zhangdi on 2021/01/12 09:12:32.
 */
public class time {
    public static void main(String[] args) throws InterruptedException {
        String mykey = "auditGatheringProcess:";
        String definitionKey = "auditGatheringProcess:2:107523";
        System.out.println(StrUtil.subPre(definitionKey, definitionKey.indexOf(":")+1));

//        time t = new time();
//        System.out.println(t.generateWithPrefix("GLF-JS-", 111111, 5));

//        while (true) {
//            if (System.currentTimeMillis() < 1610415119000L) {
//                System.out.println(11111111);
//                Thread.sleep(500);
//                continue;
//            }
//            System.out.println(222222222);
//            break;
//        }
//        System.out.println(333333333);
    }

    public String generateWithPrefix(String prefix, int current, int placeholderLength) {
        int number = current + 1;
        int diff = Math.abs(placeholderLength - (number+"").length());
        StringBuilder sb = new StringBuilder(prefix);
        for (int i = 0; i < diff; i++) {
            sb.append(0);
        }
        sb.append(current);

        return sb.toString();
    }
}
